﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
    CodeBehind="ComparisonByAreaSettlement.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.Comparison.ComparisonByAreaSettlement"
    Title="处方单数据" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
        //        function displayDIV() {
        //            if (document.getElementById("tabcontent2").style.display == "none") {
        //                document.getElementById("tabcontent2").style.display = "block"
        //                document.getElementById("btnDisplay").value = "隐藏图表"
        //            }
        //            else {
        //                document.getElementById("tabcontent2").style.display = "none"
        //                document.getElementById("btnDisplay").value = "显示图表"
        //            }
        //        }

        function insertAreaInfo(area) {
            var varhosInfo = area.split('|');
            document.getElementById("ctl00_ContentPlaceHolder1_HidAreaId").value = varhosInfo[1];
            document.getElementById("ctl00_ContentPlaceHolder1_txtAreaName").value = varhosInfo[0];
        }
        function dis(id) {
            document.getElementById("chart1").style.display = "none";
            document.getElementById("chart2").style.display = "none";
            document.getElementById("chart3").style.display = "none";
            document.getElementById("chart4").style.display = "none";
            document.getElementById("chart5").style.display = "none";
            document.getElementById("chart6").style.display = "none";
            document.getElementById("chart7").style.display = "none";
            document.getElementById("PM").style.display = "none";
            document.getElementById(id).style.display = "block"
            if (id == "chart6" || id == "chart7")
            { document.getElementById("PM").style.display = "block"; }

        }
    </script>

    <div id="tabnav">
        <ul>
            <li><a href="ComparisonByHospitalSettlement.aspx">医院对比</a> </li>
            <li class="active"><a href="javascript:void(0)">地区对比</a></li>
            <li><a href="ComparisonByProSettlement.aspx">药品对比</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="labArea" runat="server" Text="选择地区："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtAreaName" MaxLength="25" runat="server" Width="262px"></asp:TextBox>
                                <input type="button" id="btnArea" runat="server" value="选择地区" class="btn" style="margin-right: 5px;"
                                    onclick="javascript:showPopWin('选择地区','/Common/FindAllArea.aspx', 900,450, null,true,true)" />
                                <input id="HidAreaId" type="hidden" name="HidAreaId" runat="server" />
                            </td>
                            <td align="right">
                                <asp:Label ID="labPlanTime" runat="server" Text="统计时间："></asp:Label>
                                &nbsp;
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                    Width="80px"></asp:TextBox>—<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                        Width="80px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" TabIndex="99" />
                </td>
            </tr>
        </table>
    </div>
    <a href="javascript:dis('chart1')">处方单总金额</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="javascript:dis('chart2')">
        基药总金额</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="javascript:dis('chart3')">补贴总金额</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="javascript:dis('chart4')">基药使用率(金额)</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="javascript:dis('chart5')">基药使用率(数量)</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <%--<a href="javascript:dis('chart6')">药品用量(金额)</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a href="javascript:dis('chart7')">
            药品用量(数量)</a>&nbsp;&nbsp;&nbsp;--%><div id="tabcontent2" class="importlist">
                <asp:Label ID="lblnull" runat="server" Text="无对比数据" Visible="false"></asp:Label>
                <div id="chart1" style="display: none">
                    <asp:Chart ID="hospitalAmountSubsidy" runat="server" BackColor="#D3DFF0" BackGradientStyle="TopBottom"
                        BorderWidth="2" BorderColor="26, 59, 105" Width="800px" Height="378px">
                        <Legends>
                            <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                                Docking="Top" Alignment="Far">
                            </asp:Legend>
                        </Legends>
                        <BorderSkin SkinStyle="Emboss"></BorderSkin>
                        <ChartAreas>
                            <asp:ChartArea Name="hospitalAmountSubsidy" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                                BackColor="64, 165, 191, 228" ShadowColor="Transparent">
                                <Position Y="3" Height="85" Width="92" X="2" Auto="true"></Position>
                                <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisY>
                                <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisX>
                            </asp:ChartArea>
                        </ChartAreas>
                    </asp:Chart>
                </div>
                <div id="chart2" style="display: none">
                    <asp:Chart ID="hospitalAmountSubsidy0" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                        BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                        Height="370">
                        <Legends>
                            <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                                Docking="Top" Alignment="Far">
                            </asp:Legend>
                        </Legends>
                        <BorderSkin SkinStyle="Emboss"></BorderSkin>
                        <ChartAreas>
                            <asp:ChartArea Name="hospitalAmountSubsidy0" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                                BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                                BackGradientStyle="TopBottom">
                                <%--<Position Y="3" Height="92" Width="92" X="2"></Position>--%>
                                <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisY>
                                <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisX>
                            </asp:ChartArea>
                        </ChartAreas>
                    </asp:Chart>
                </div>
                <div id="chart3" style="display: none">
                    <asp:Chart ID="hospitalAmountSubsidy1" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                        BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                        Height="370">
                        <Legends>
                            <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                                Docking="Top" Alignment="Far">
                            </asp:Legend>
                        </Legends>
                        <BorderSkin SkinStyle="Emboss"></BorderSkin>
                        <ChartAreas>
                            <asp:ChartArea Name="hospitalAmountSubsidy1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                                BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                                BackGradientStyle="TopBottom">
                                <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                                <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                                <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisY>
                                <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisX>
                            </asp:ChartArea>
                        </ChartAreas>
                    </asp:Chart>
                </div>
                <div id="chart4" style="display: none">
                    <asp:Chart ID="hospitalAmountSubsidy2" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                        BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                        Height="370">
                        <Legends>
                            <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                                Docking="Top" Alignment="Far">
                            </asp:Legend>
                        </Legends>
                        <BorderSkin SkinStyle="Emboss"></BorderSkin>
                        <ChartAreas>
                            <asp:ChartArea Name="hospitalAmountSubsidy2" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                                BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                                BackGradientStyle="TopBottom">
                                <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                                <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                                <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisY>
                                <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisX>
                            </asp:ChartArea>
                        </ChartAreas>
                    </asp:Chart>
                </div>
                <div id="chart5" style="display: none">
                    <asp:Chart ID="hospitalAmountSubsidy3" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                        BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                        Height="370">
                        <Legends>
                            <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                                Docking="Top" Alignment="Far">
                            </asp:Legend>
                        </Legends>
                        <BorderSkin SkinStyle="Emboss"></BorderSkin>
                        <ChartAreas>
                            <asp:ChartArea Name="hospitalAmountSubsidy3" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                                BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                                BackGradientStyle="TopBottom">
                                <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                                <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                                <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisY>
                                <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <MajorGrid LineColor="64, 64, 64, 64" />
                                </AxisX>
                            </asp:ChartArea>
                        </ChartAreas>
                    </asp:Chart>
                </div>
                <div id="PM" style="display: none">
                    <div id="chart6" style="display: none">
                        <asp:Chart ID="hospitalAmountSubsidy4" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                            BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                            Height="370">
                            <Legends>
                                <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                                    Docking="Top" Alignment="Far">
                                </asp:Legend>
                            </Legends>
                            <BorderSkin SkinStyle="Emboss"></BorderSkin>
                            <ChartAreas>
                                <asp:ChartArea Name="hospitalAmountSubsidy4" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                                    BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                                    BackGradientStyle="TopBottom">
                                    <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                                    <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                                    <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                        <MajorGrid LineColor="64, 64, 64, 64" />
                                    </AxisY>
                                    <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                        <MajorGrid LineColor="64, 64, 64, 64" />
                                    </AxisX>
                                </asp:ChartArea>
                            </ChartAreas>
                        </asp:Chart>
                    </div>
                    <div id="chart7" style="display: none">
                        <asp:Chart ID="hospitalAmountSubsidy5" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                            BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="800"
                            Height="370">
                            <Legends>
                                <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                                    Docking="Top" Alignment="Far">
                                </asp:Legend>
                            </Legends>
                            <BorderSkin SkinStyle="Emboss"></BorderSkin>
                            <ChartAreas>
                                <asp:ChartArea Name="hospitalAmountSubsidy5" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                                    BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                                    BackGradientStyle="TopBottom">
                                    <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                                    <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                                    <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                        <MajorGrid LineColor="64, 64, 64, 64" />
                                    </AxisY>
                                    <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                                        <MajorGrid LineColor="64, 64, 64, 64" />
                                    </AxisX>
                                </asp:ChartArea>
                            </ChartAreas>
                        </asp:Chart>
                    </div>
                    <asp:Label ID="Label1" runat="server" Text="选择药品"></asp:Label>
                    <asp:TextBox ID="txtProcureCatalogID" runat="server"></asp:TextBox>
                    <hz:HzButton ID="btnPm" runat="server" Text="查询" OnClick="btnPm_Click" />
                </div>
            </div>
    <div>
        <%--<asp:GridView ID="gvwHosComparison" runat="server" AutoGenerateColumns="False" 
            CellPadding="1" CellSpacing="3" CssClass="mainlist" 
            onrowdatabound="gvwProcureCatalog_RowDataBound">
            <Columns>
                <asp:BoundField DataField="HospitalName" HeaderText="医院" ReadOnly="true" />
            <asp:TemplateField HeaderText="采购类型">
                    <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("SortSource"))%>
                    </ItemTemplate>
                    <HeaderStyle Width="60px" />
                </asp:TemplateField>
                <asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购总金额" 
                    ReadOnly="True" />
                <asp:BoundField DataField="PurchaseCountTotal" HeaderText="采购总数量" 
                    ReadOnly="True" />
                <asp:BoundField DataField="WareHouseAmountTotal" HeaderText="入库总金额" 
                    ReadOnly="True" />
                <asp:BoundField DataField="WareHouseCountTotal" HeaderText="入库总数量" 
                    ReadOnly="True" />
                <asp:BoundField DataField="WareHouseRate" DataFormatString="{0:P}" 
                    HeaderText="入库率" ReadOnly="True" />
            </Columns>
        </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>--%>
    </div>
    <%--<hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" 
        OnClick="btnExcel_Click" />--%>
    <div class="listip">
        <ul>
            <li>说明:<span> 此图为地区对比图,查看选择的地区在选择的时间段内的数据进行比较.</span></li>
        </ul>
    </div>
</asp:Content>
